package com.ncloud.system.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;

@SuppressWarnings("serial")
public class User implements Serializable {

	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long userId;
	
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long companyId;
	
	@JSONField(serializeUsing = ToStringSerializer.class)
	private Long departId;
	
	private String account;
	
	private String passwd;
	
	private String icon;
	
	private String superman;
	
	private String name;
	
	private String contactPhone;
	
	private String state;
	
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date firstLoginTime;
	
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date lastLoginTime;
	
	private Long createUser;
	
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date createDate;
	
	private Long updateUser;
	
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date updateDate;
	
	private String remarks;
	
	private List<String> roles;

	public Long getUserId() {
		return userId;
	}
	
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public Long getDepartId() {
		return departId;
	}

	public void setDepartId(Long departId) {
		this.departId = departId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Date getFirstLoginTime() {
		return firstLoginTime;
	}

	public void setFirstLoginTime(Date firstLoginTime) {
		this.firstLoginTime = firstLoginTime;
	}

	public Long getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(Long updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public List<String> getRoles() {
		return roles;
	}

	public void setRoles(List<String> roles) {
		this.roles = roles;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getSuperman() {
		return superman;
	}

	public void setSuperman(String superman) {
		this.superman = superman;
	}

}
